package com.example.Blog.model;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.util.Date;
@Entity
public class Comment {
    @Id
    private int commentId;
    private Date commentTime;
    private String commentContent;
    private int commentLikes;
    private int commentBelongToUser;
    private int commentBelongToArticle;
    private String commentBelongToUserAccount;

    public String getCommentBelongToUserName() {
        return commentBelongToUserName;
    }

    public void setCommentBelongToUserName(String commentBelongToUserName) {
        this.commentBelongToUserName = commentBelongToUserName;
    }

    private String commentBelongToUserName;

    public Comment(int commentId, Date commentTime, String commentContent, int commentLikes, int commentBelongToUser, int commentBelongToArticle) {
        this.commentId = commentId;
        this.commentTime = commentTime;
        this.commentContent = commentContent;
        this.commentLikes = commentLikes;
        this.commentBelongToUser = commentBelongToUser;
        this.commentBelongToArticle = commentBelongToUser;
    }

    public Comment(){

    }

    public int getCommentId() {
        return commentId;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public int getCommentLikes() {
        return commentLikes;
    }

    public int getCommentBelongToUser() {
        return commentBelongToUser;
    }

    public int getCommentBelongToArticle() {
        return commentBelongToArticle;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public void setCommentLikes(int commentLikes) {
        this.commentLikes = commentLikes;
    }

    public void setCommentBelongToUser(int commentBelongToUser) {
        this.commentBelongToUser = commentBelongToUser;
    }

    public void setCommentBelongToArticle(int commentBelongToArticle) {
        this.commentBelongToArticle = commentBelongToArticle;
    }

    public String getCommentBelongToUserAccount() {
        return commentBelongToUserAccount;
    }

    public void setCommentBelongToUserAccount(String commentBelongToUserAccount) {
        this.commentBelongToUserAccount = commentBelongToUserAccount;
    }
}
